import VXETable from "vxe-table";
import RuleItem from "./RuleItem.vue";

VXETable.renderer.add('RuleItem', {
    // 默认显示模板
    renderDefault(h, renderOpts, params) {
        const { row, column } = params;
        const { attrs, options } = renderOpts;
        return [
            h(RuleItem, {
                attrs,
                props: {
                    params: {
                        row, column
                    },
                    options,
                },
            })
        ];
    }
});
